package fr.efrei.musicpliz.entity;

import java.io.File;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@Entity
@DiscriminatorValue(value = "morceau")
@SuppressWarnings("serial")
public class Morceau extends AbstractFile {
	
	@ManyToOne
	private CompteArtistique artiste;
	
	public Morceau(String album, String title, String description, File file) {
		super(album, title, description, file);
	}

	public CompteArtistique getArtiste() {
		return artiste;
	}

	public void setArtiste(CompteArtistique artiste) {
		this.artiste = artiste;
	}
}
